package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class WeatherController {
    @RequestMapping("search.html")
    @ResponseBody
    public String weather(String city) throws Exception{
        String result = WeatherUtil.get(city);
        return result;
    }
}
